-- GENERATED SPELL FOR [Magmothregar] --


function spell0_25430(pUnit, Event) --@Fervor,Self--
pUnit:FullCastSpellOnTarget(50822,pUnit)
pUnit:RegisterEvent('Sorts_25430', 5327, 1)
end

function spell1_25430(pUnit, Event) --@Magnataur Charge,Self--
pUnit:FullCastSpellOnTarget(50413,pUnit)
pUnit:RegisterEvent('Sorts_25430', 10306, 1)
end

function Sorts_25430(pUnit, Event)
local choix_sorts_25430 = math.random(0, 1)
if choix_sorts_25430 == 0 then
pUnit:RegisterEvent('spell0_25430', 1, 1)
end
if choix_sorts_25430 == 1 then
pUnit:RegisterEvent('spell1_25430', 1, 1)
end
end

function mob25430_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25430', math.random(1500, 3000), 1)
end

function mob25430_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25430_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25430_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25430, 1, 'mob25430_Action')
RegisterUnitEvent(25430, 2, 'mob25430_Leave')
RegisterUnitEvent(25430, 3, 'mob25430_Kill')
RegisterUnitEvent(25430, 4, 'mob25430_Die')
